<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="test_css.css" type="text/css" />
<script type="text/javascript" src="jquery-1.7.1.js"></script>
<script type="text/javascript">
function del(a,b)
{
	var obj=$("#"+a);
	var obj2=$("#"+b);

	obj.remove();
	obj2.remove();
}

</script>

</head>
<body>
<div class="fun" id='dog'>
	<div class="name">
	大吊丝
	</div>
	
	<div class="controls" id='controls'>
	<a href="#"><img src="png/tiny_gear.png" align="middle" /></a>
	</div>
	<div>
	<input type="button" value="del" id='btn' onclick=del('controls','dog'); />
	</div>
	</div>
</body>
</html>